<%@ page language="java"%>
<%@ page import="org.cgs.web.beans.*"%>

<jsp:useBean id="instructorBean" scope="session" class="org.cgs.web.beans.InstructorHelperBean" />

<div id="side-bar">
	<div>
		<p class="sideBarTitle">Instructor Menu</p>
		<ul>
			<li><a href="/cgs/instructor/instructorMain.jsp">Home</a></li>
			<li><a href="/cgs/instructor/settings/changePassword.jsp">Change Password</a></li>
			<li><a href="/cgs/logout.jsp">Logout</a></li>
		</ul>
	</div>

	<%
		if(instructorBean.isInstructorAdmin())
		{
	%>
			<div>
				<p class="sideBarTitle">Admin Menu</p>
				<ul>
					<li><a href="/cgs/admin/addInstructor.jsp">Add Instructor</a></li>
					<li><a href="/cgs/admin/viewInstructors.jsp">View Instructors</a></li>
				</ul>
			</div>
	<%	
		}
	%>
	
	<div>
		<p class="sideBarTitle">Students Menu</p>
		<ul>
			<li><a href="/cgs/instructor/students/addStudent.jsp">Add Students</a></li>
			<li><a href="/cgs/instructor/students/viewStudents.jsp">View Students</a></li>
			<li><a href="/cgs/instructor/students/generateReport.jsp">Generate Students Report</a></li>
		</ul>
	</div>

	<div>
		<p class="sideBarTitle">Schools Menu</p>
		<ul>
			<li><a href="/cgs/instructor/schools/addSchool.jsp">Add Schools</a></li>
			<li><a href="/cgs/instructor/schools/viewSchools.jsp">View Schools</a></li>
			<li><a href="/cgs/instructor/schools/generateReport.jsp">Generate Schools Report</a></li>
		</ul>
	</div>

	<div>
		<p class="sideBarTitle">Scheduler</p>
		<ul>
			<li><a href="/cgs/instructor/scheduler/scheduler.jsp">Run Scheduler</a></li>
		</ul>
	</div>
</div>